﻿using DapperExtensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RightControl.Model {
    [Table("sub_product_size")]
    public class SubProductSize : Entity {
        
        public int ProductId { get; set; }

        public string OriSize { get; set; }
        public string Size { get; set; }
        public decimal Price { get; set; }
        public string KeyAttributes { get; set; }

        public string DhAttribute { get; set; }

        public SubProductSize() { }


        public SubProductSize(int prodcutId, string size = "", decimal pc = 0, int userId = 0) {
            ProductId = prodcutId;
            Size = size;
            OriSize = size;
            Price = pc;
            CreateBy = userId;
            CreateOn = DateTime.Now;
        }

    }
}
